#!/bin/bash

fd_install_source=/usr/local/software


home=/niuniu/tools

item_name=tomcat-jenkins

mkdir -pv ${home}

cd ${home}

rm -rf ${home}/${item_name}

tar -zxvf ${fd_install_source}/apache-tomcat-8.5.5.tar.gz

fd_target_item=`ls -l |grep apache-tomcat* |awk '{print $NF}'`

mv ${home}/${fd_target_item} ${home}/${item_name}

cp ${fd_install_source}/jenkins.war ${home}/${item_name}/webapps

#echo '$home/bin'

#cd ${home}/${fd_target_item}/bin

#./shutdown.sh
#./startup.sh

